package com.itheima.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//定义为配置类
//@Configuration
//扫描包
@ComponentScan({"com.itheima.service"})
//加载配置文件
@PropertySource("classpath:jdbc.properties")
//导入配置类包用于整合mybatis
@Import({JdbcConfig.class,MyBatisConfig.class})
//开启注解操作事务
@EnableTransactionManagement
public class SpringConfig {
}
